package com.xhui.vimarket.zkplus.zul.attr.ada.impl;

import org.zkoss.zk.ui.Component;
com.xhui.vimarket.zkplusui.vimarket.zkplus.zul.attr.adacom.xhui.vimarket.zkplusrt com.xhui.vimarket.zkplus.zul.attr.bean.AttrTmpl;

/**
 * 可选产品属性适配器.
 * 取空属性实例方案：全部不生成
 * 按钮文本，composer方案：采用默认的值显示和设置composer,或根据传入的值设置
 * checkbox，composer方案：采用无composer
 * groupbox，composer方案：采用附属功能composer,增加更多选项的实现
 * 
 * @author wuyx
 * @version Revision 1.0.0
 * 
 */
public class OptionalOfferAttrAda extends DefaultRtimeAttrAda {
    
    /**
     * ins.
     */
    private static AttrAda ins = new OptionalOfferAttrAda();
    
    /**
     * instance.
     * @return AttrAda
     */
    public static AttrAda instance() {
        return OptionalOfferAttrAda.ins;
    }
    
    /**
     * 构造函数.
     */
    protected OptionalOfferAttrAda() {
    }
    
    @Override
    public Component getAttrTmplCompStr(final String displayMode, final AttrTmpl attrTmpl,
        final String sComposer, final String param1, final String param2, Component parentComp) {
        return super.getAttrTmplCompStr(displayMode, attrTmpl, sComposer, param1, param2, parentComp);
    }
}
